import request from '@/utils/request'

export function getSlides(caseNo){
    return request({
        url: '/freezing/maa/getSlides/'+caseNo,
        method: 'GET'
    })
}

export function getCaseByHospital(status,hospital){
    return request({
        url: '/freezing/maa/getCase?status='+status+'&hospital='+hospital,
        method: 'GET'
    })
}

export function allotCaseSlide(ids){
    console.log(ids)
    return request({
        url: '/freezing/maa/allotCaseSlide',
        method: 'PUT',
        data: ids
    })
}

export function returnSite(id){
    return request({
        url: '/freezing/maa/returnSite/'+id,
        method: 'PUT'
    })
}

export function revocation(caseId,reason){
    return request({
        url: '/freezing/maa/revocation/'+caseId+'?reason='+reason,
        method: 'PUT'
    })
}